﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" EnableViewState="false"
Inherits="System.Web.Mvc.ViewPage<Gman.WebApp.Models.TransferenciaActivoModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<script src="../../Scripts/Binding/TransferenciaActivo.js" type="text/javascript"></script>

 <script type="text/javascript">
     var guid = "<%= Model.ID.ToString()%>";
     var action = "<%= Model.Action.ToString()%>";
   
     $(document).ready(function() {
         SetupControls();
         SetupActions();

         $("#AddTransActivoDetalle").click(function() {             
             LoadAddOrEditActivos(null);
         });
     });
     
</script>

<div style="margin-top: 5px;">
    <div class="DataTop">
        <div class="DataTopLeft">
        </div>
        <div class="DataTopRight">
        </div>
    </div>
    <div class="DataContent">
        <div class="DataContentRight" style="height: 50px;">
            <b>Transferencia de Activos </b>
            <% Html.RenderPartial("ToolBar", Model.ToolBar); %>
        </div>
    </div>
    <div class="DataBottom">
        <div class="DataBottomLeft">
        </div>
        <div class="DataBottomRight">
        </div>
    </div>
</div>


<div style="margin-top:5px;">
    <div class="DataTop">
        <div class="DataTopLeft">
        </div>
        <div class="DataTopRight">
        </div>
    </div>
    <div class="DataContent">
        <div class="DataContentRight">
            <div class="DataTable">

                <fieldset>
                    <table width="100%">
                        <tr>
                            <td>
                                <div class="editor-label">
                                    Numero de Transferencia
                                </div>
                            </td>
                            <td>
                                <div>
                                    <%= Html.TextBoxFor(model => model.TransActivo.NroTransfer, new { style = "width: 50%;", propertyname = "TransActivo.NroTransfer", ID = "TransActivo_CodTrans" })%>
                                    
                                    <img id="btnBuscar" src="../../_Images/Search-icon-16.png" alt="Buscar Trans" style="cursor: pointer;" />
                                </div>                                  
                            </td>
                           
                         </tr>               
                        <tr>                            
                            <td style="width: 150px;">
                                <div class="editor-label">
                                    Usuario Gestiona
                                </div>
                            </td>
                            <td style="width: 450px">
                                <div>
                                    <%= Html.DropDownListFor(model => model.TransActivo.UsuGestTrans, Model.PersonalGestiona, new { style = "width: 40%;", propertyname = "TransActivo.UsuGestTrans" })%>
                                </div>
                            </td>
                         </tr>
                        <tr>
                            <td style="width: 150px;">
                                <div class="editor-label">
                                    Destinarario Responsable
                                </div>
                            </td>
                            <td style="width: 450px">
                                <div>
                                    <%= Html.DropDownListFor(model => model.TransActivo.DestRespTrans, Model.PersonalResponsable, new { style = "width: 40%;", propertyname = "TransActivo.DestRespTrans" })%>
                                </div>
                            </td>
                         </tr>
                         <tr>
                            <td style="width: 150px">
                                <div class="editor-label">
                                    Fecha de Transferencia:
                                </div>
                            </td>                
                            <td>
                                <div>
                                    <%= Html.TextBoxFor(model => model.TransActivo.FecTransfer, new { @class = "date", style = "width: 40%;", propertyname = "TransActivo.FecTransfer" })%>
                                </div>
                            </td>             
                        </tr>
                        <tr>
                            <td style="width: 150px">
                                <div class="editor-label">
                                    Motivo de la Transferencia:
                                </div>
                            </td>                
                            <td  style="width: 450px">
                                <div>
                                    <%= Html.TextAreaFor(model => model.TransActivo.MtvoTransfer, new { style = "width: 50%;height:150px", propertyname = "TransActivo.MtvoTransfer" })%>
                                </div>
                            </td>                
                        </tr>
                     
                        
                    </table>
                </fieldset>
            </div>   
        </div>
    </div>    
   <div class="DataContent">
        <div class="DataContentRight" style="height: 400px;">
            <br />
            <b>Transferencias </b> 
            <input id="AddTransActivoDetalle" type="submit" value="Adicionar" style="float:right;"/>            
            <div id="ListaTransActivoDetalleDiv">
             <% Html.RenderPartial("ListaTransActivoDetalle", Model); %>         
             </div>
        </div>
    </div>  
    <div class="DataBottom">
        <div class="DataBottomLeft">
        </div>           
        <div class="DataBottomRight">
        </div>
    </div>
</div>

<div id="TransActivoDetallePopupDiv">
</div>

</asp:Content>

